package top.codedance.iotp.registy.util;

import java.lang.management.ManagementFactory;

public class SystemUtil {
    public static boolean healthy(){
        return true;
    }

    public static int load(){
        return (int)Math.floor(ManagementFactory.getOperatingSystemMXBean().getSystemLoadAverage() * 100);
    }

    public static int score(){
        return 100 - load();
    }
}
